<script type="text/javascript" src="/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/article.js"></script>
<?php if(stripos($article['Article']['contents'], 'class="brush:')) : ?>
<link href="/tools/syntaxhighlighter/styles/shCore.css" rel="stylesheet" type="text/css" />
<link href="/tools/syntaxhighlighter/styles/shThemeDefault.css" rel="stylesheet" type="text/css" />
<script src="/tools/syntaxhighlighter/scripts/shCore.js" type="text/javascript"></script>
<script src="/tools/syntaxhighlighter/scripts/shAutoloader.js" type="text/javascript"></script>
<?php $shh = true; endif; ?>
<p class="view_path">当前位置：<?php echo $this->Html->link($article['Category']['name'], array('controller' => 'articles', 'action' => 'lists', $article['Category']['id'])); ?> ›› <?php echo $article['Article']['title']; ?></p>
<article>
	<h3 align="center"><?php echo $article['Article']['title']; ?></h3>
	<div class="sub_div"><?php echo $article['Article']['contents']; ?></div>
    <span class="atip">更新：<?php echo $article['Article']['modified']; ?>&nbsp;&nbsp;&nbsp;作者：<?php echo $article['User']['username']; ?>    </span>
    <div style="padding-left:2%">
        <!-- Baidu Button BEGIN -->
            <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="http://share.baidu.com/static/images/type-button-1.jpg" />
            </div>
        <script type="text/javascript" id="bdshare_js" data="type=button&amp;mini=1" ></script>
        <script type="text/javascript" id="bdshell_js"></script>
        <script type="text/javascript">
            document.getElementById("bdshell_js").src = "http://share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
        </script>
        <!-- Baidu Button END -->
    </div>
</article>
<?php if(isset($shh) && $shh) : ?>
<script type="text/javascript">
function path(){
	var args = arguments,	result = [];
	for(var i = 0; i < args.length; i++)
		result.push(args[i].replace('@', '/tools/syntaxhighlighter/scripts/'));
		return result;
};
SyntaxHighlighter.autoloader.apply(null, path(
'applescript            @shBrushAppleScript.js', 
'actionscript3 as3      @shBrushAS3.js',  
'bash shell             @shBrushBash.js',  
'coldfusion cf          @shBrushColdFusion.js',  
'cpp c                  @shBrushCpp.js',  
'c# c-sharp csharp      @shBrushCSharp.js',  
'css                    @shBrushCss.js',  
'delphi pascal          @shBrushDelphi.js',  
'diff patch pas         @shBrushDiff.js',  
'erl erlang             @shBrushErlang.js',  
'groovy                 @shBrushGroovy.js',  
'java                   @shBrushJava.js',  
'jfx javafx             @shBrushJavaFX.js',  
'js jscript javascript  @shBrushJScript.js',  
'perl pl                @shBrushPerl.js',  
'php                    @shBrushPhp.js',  
'text plain             @shBrushPlain.js',  
'py python              @shBrushPython.js',  
'ruby rails ror rb      @shBrushRuby.js',  
'sass scss              @shBrushSass.js',  
'scala                  @shBrushScala.js',  
'sql                    @shBrushSql.js',  
'vb vbnet               @shBrushVb.js',  
'xml xhtml xslt html    @shBrushXml.js'));
SyntaxHighlighter.all();
</script>
<?php endif; ?>
<div id="commemt">
	<hr class="pager_line"/>
	<?php $user_id = isset($user_id)?$user_id:0; ?>
	<form id="CommentViewForm" method="post" action="javascript:addcomm(<?php echo $article['Article']['id']; ?>,<?php echo $user_id; ?>);" accept-charset="utf-8">
		<label for="CommentContents" class="arealabel">交流咨询</label><textarea name="data[Comment][contents]" id="CommentContents" class="comment_area"></textarea>
		<?php if( empty($user_id) ){?>
		<label for="CommentVisitor">称呼</label> <input name="data[Comment][visitor]" type="text" id="CommentVisitor" />
		<label for="CommentVisitorContacts">联系方式</label> <input name="data[Comment][visitor_contacts]" type="text" id="CommentVisitorContacts" />
		<?php } ?>
		<input type="submit" id="combut" value="提 交" />
	</form>
</div>